package com.wlj.vo;

import com.fasterxml.jackson.annotation.JsonView;
import com.wlj.vo.view.GeneralViews;


public class UserVO{

    //用户信息简单视图
    public interface UserSimpleView extends GeneralViews.INormalView{}
    //用户信息详情视图
    public interface UserDetailView extends UserSimpleView{}

    private String username;

    private String avatar;

    private String phone;

    private String email;

    private String address;

    private String password;

    @JsonView(UserSimpleView.class)
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @JsonView(UserSimpleView.class)
    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    @JsonView(UserSimpleView.class)
    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }
    @JsonView(UserSimpleView.class)
    public void setEmail(String email) {
        this.email = email;
    }
    @JsonView(UserSimpleView.class)
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
    @JsonView(UserDetailView.class)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
